<%--
  Created by IntelliJ IDEA.
  User: TT
  Date: 2020/9/3
  Time: 15:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
    <link rel="stylesheet" href="css/index2.css">
    <script type="text/javascript">
        $(function () {
            $.post("geshou.do",function (num) {
            for (var i in num){
                $("#tutu").append("<input type='checkbox' name='gs' value='"+num[i].cid+"'>"+num[i].cname)
            }
            },"json");
        })
    </script>
</head>
<body>
    <form action="add.do" method="post" enctype="multipart/form-data">
        歌曲名:<input type="text" name="sname"><br>
        来源:<input type="text" name="scome"><br>
        歌曲评分:<input type="text" name="score"><br>
        发布时间:<input type="date" name="itime"><br>
        歌曲文件:<input type="file" name="myFile"><br>
        歌手:<div id="tutu">

    </div>
        <input type="submit" value="添加">
        <input type="reset" value="重置">
    </form>
</body>
</html>
